import Vue from 'vue'
import VueRouter from 'vue-router'
import News from '../views/News.vue'
import Knowledge from '../views/Knowledge.vue'
import Mine from '../views/Mine.vue'

Vue.use(VueRouter)

const routes = [
    {
        path: '/',
        name: 'Home',
        redirect: '/news',
    },

    {
        path: '/news',
        name: 'news',
        component: News
    },
    {
        path: '/knowledge',
        name: 'Knowledge',
        component: Knowledge
    },
    {
        path: '/mine',
        name: 'Mine',
        component: Mine
    },


]

const router = new VueRouter({
    routes
})

export default router
